<?php 
class CBaseUser extends CBaseEosSingular {

	protected $m_intId;
	protected $m_strLoginName;
	protected $m_strPassword;
	protected $m_strOriginalPassword;
	protected $m_strFirstName;
	protected $m_strLastName;
	protected $m_strEmail;
	protected $m_strAltEmail;
	protected $m_strBirthDate;
	protected $m_strGender;
	protected $m_strMobileNo;
	protected $m_strAddress1;
	protected $m_strAddress2;
	protected $m_strZipcode; 	
	protected $m_strWebsite; 	
	protected $m_intCountryId; 
	protected $m_intStateId;  	
	protected $m_intCityId; 	
	protected $m_intUserTypeId; 	
	protected $m_boolIsVerified; 	
	protected $m_strVerifiedDate; 	
	protected $m_strActivationCode; 	
	protected $m_strStatus; 	
	protected $m_strBannedDate; 	
	protected $m_strLastLoginDate; 
	protected $m_strSignupDate;
	
	public function __construct() {		
		parent::__construct();
		return true;
	}
	
	public function assign( $mixArr ) {		
		
	}
	
	/**************************************
	************* SET FUNCTIONS ***********
	**************************************/
	
	public function setId( $intId ) {
		$this->m_intId = $intId;
	}
	
	public function setLoginName( $strLoginName ) {
		$this->m_strLoginName = $strLoginName;
	}
	
	public function setPassword( $strPassword ) {
		$this->m_strPassword = $strPassword;
	}
	
	public function setOriginalPassword( $strOriginalPassword ) {
		$this->m_strOriginalPassword = $strOriginalPassword;
	}
	
	public function setFirstName( $strFirstName ) {
		$this->m_strFirstName = $strFirstName;
	}
	
	public function setLastName( $strLastName  ) {
		$this->m_strLastName = $strLastName ;
	}
	
	public function setEmail( $strEmail ) {
		$this->m_strEmail = $strEmail;
	}
	
	public function setAltEmail( $strAltEmail ) {
		$this->m_strAltEmail = $strAltEmail;
	}
	
	public function setBirthDate( $strBirthDate ) {
		$this->m_strBirthDate = $strBirthDate;
	}
	
	public function setGender( $strGender ) {
		$this->m_strGender = $strGender;
	}
	
	public function setMobileNo( $strMobileNo ) {
		$this->m_strMobileNo = $strMobileNo;
	}
	
	public function setAddress1( $strAddress1 ) {
		$this->m_strAddress1 = $strAddress1;
	}
	
	public function setAddress2( $strAddress2 ) {
		$this->m_strAddress2 = $strAddress2;
	}
	
	public function setZipcode( $strZipcode ) {
		$this->m_strZipcode = $strZipcode;
	}
	
	public function setWebsite( $strWebsite ) {
		$this->m_strWebsite = $strWebsite;
	}
	
	public function setCountryId( $intCountryId ) {
		$this->m_intCountryId = $intCountryId;
	}	
	
	public function setStateId( $intStateId ) {
		$this->m_intStateId = $intStateId;
	}
	
	public function setCityId( $intCityId ) {
		$this->m_intCityId = $intCityId;
	} 
	
	public function setUserTypeId( $intUserTypeId ) {
		$this->m_intUserTypeId = $intUserTypeId;
	} 

	public function setIsVerified( $boolIsVerified ) {
		$this->m_boolIsVerified = $boolIsVerified;
	}
	
	public function setVerifiedDate( $strVerifiedDate ) {
		$this->m_strVerifiedDate = $strVerifiedDate;
	} 	
	
	public function setActivationCode( $strActivationCode ) {
		$this->m_strActivationCode = $strActivationCode;
	} 	
	
	public function setStatus( $strStatus ) {
		$this->m_strStatus = $strStatus;
	}	
	
	public function setBannedDate( $strBannedDate ) {
		$this->m_strBannedDate = $strBannedDate;
	}	
	
	public function setLastLoginDate( $strLastLoginDate ) {
		$this->m_strLastLoginDate = $strLastLoginDate;
	} 
		
	public function setSignupDate ( $strSignupDate ) {
		$this->m_strSignupDate = $strSignupDate;
	} 
	
	/**************************************
	************* GET FUNCTIONS ***********
	**************************************/
	
	public function getId() {
		return $this->m_intId;
	}
	
	public function getLoginName() {
		return $this->m_strLoginName;
	}
	
	public function getPassword() {
		return $this->m_strPassword;
	}
	
	public function getOriginalPassword() {
		return $this->m_strOriginalPassword;
	}
	
	public function getFirstName() {
		return $this->m_strFirstName;
	}
	
	public function getLastName() {
		return $this->m_strLastName;
	}
	
	public function getEmail() {
		return $this->m_strEmail;
	}
	
	public function getAltEmail() {
		return $this->m_strAltEmail;
	}
	
	public function getBirthDate() {
		return $this->m_strBirthDate;
	}
	
	public function getGender() {
		$this->m_strGender;
	}

	public function getMobileNo() {
		return $this->m_strMobileNo;
	}
	
	public function getAddress1() {
		return $this->m_strAddress1;
	}
	
	public function getAddress2() {
		return $this->m_strAddress2;
	}
	
	public function getZipcode() {
		return $this->m_strZipcode;
	}
	
	public function getWebsite() {
		return $this->m_strWebsite;		
	}
	
	public function getCountryId() {
		return $this->m_intCountryId;
	}	
	
	public function getStateId() {
		return $this->m_intStateId;
	}
	
	public function getCityId() {
		return $this->m_intCityId;
	} 

	public function getUserTypeId() {
		return $this->m_intUserTypeId;
	} 

	public function getIsVerified() {
		return $this->m_boolIsVerified;
	}
	
	public function getVerifiedDate() {
		return $this->m_strVerifiedDate;
	} 	
	
	public function getActivationCode() {
		return $this->m_strActivationCode;
	} 	
	
	public function getStatus() {
		return $this->m_strStatus;
	}	
	
	public function getBannedDate() {
		return $this->m_strBannedDate;
	}	
	
	public function getLastLoginDate() {
		return $this->m_strLastLoginDate;
	} 
		
	public function getSignupDate () {
		return $this->m_strSignupDate;
	} 
	
	/**************************************
	************* DATABASE FUNCTIONS ***********
	**************************************/
	
	public function insert( $objDatabase ) {
		$strSql  = ' INSERT INTO `users` (`login_name`, `password`, `original_password`, `first_name`, `last_name`, `email`, `alt_email`, `birth_date`, `gender`, `mobile_no`, `address1`,'; 				        $strSql .= '`address2`, `zipcode`, `website`, `country_id`, `state_id`, `city_id`, `user_type_id`) ';
		$strSql .= ' VALUES ( \'' . $this->getLoginName() . '\',';
		$strSql .= ' \'' . $this->getPassword() . '\',';
		$strSql .= ' \'' . $this->getOriginalPassword() . '\',';
		$strSql .= ' \'' . $this->getFirstName() . '\',';
		$strSql .= ' \'' . $this->getLastName() . '\',';
		$strSql .= ' \'' . $this->getEmail() . '\',';
		$strSql .= ' \'' . $this->getAltEmail() . '\',';
		$strSql .= ' \'' . $this->getBirthDate() . '\',';
		$strSql .= ' \'' . $this->getGender() . '\',';
		$strSql .= ' \'' . $this->getMobileNo() . '\',';
		$strSql .= ' \'' . $this->getAddress1() . '\',';
		$strSql .= ' \'' . $this->getAddress2() . '\',';
		$strSql .= ' \'' . $this->getZipcode() . '\',';
		$strSql .= ' \'' . $this->getWebsite() . '\',';
		$strSql .= ' \'' . $this->getCountryId() . '\',';
		$strSql .= ' \'' . $this->getStateId() . '\',';
		$strSql .= ' \'' . $this->getCityId() . '\',';
		$strSql .= ' \'' . $this->getUserTypeId() . '\');';

		parent::insertRecord( $strSql, $objDatabase );
	}
	
}

?>